package io.gitee.chearnee.fw.kafka.serializer;

import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.kafka.support.serializer.JsonSerializer;

/**
 * @author cn
 * @version 1.0
 * @description
 * @date 2022/10/8 15:32
 */
public class KafkaJacksonSerializer<T> extends JsonSerializer<T> {

    public KafkaJacksonSerializer(Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder) {
        super(jackson2ObjectMapperBuilder.build());
    }
}
